package com.ygqh.baby.model;

import com.ygqh.baby.ao.BalanceType;
import com.ygqh.baby.ao.OperationType;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: sunshuo
 * @Date: 2019/4/9 16:55
 * @Version: 1.0
 */
public class UserBalanceDetailModel {

	private Long detailId;

	private String orderId;

	private BalanceType priceType;

	private OperationType operationType;

	private BigDecimal incomePayPrice;

	private Long userId;

	private String nickName;

	private String headImageUrl;

	private Date createTime;

	private String platformNo;

	private String platformName;

	public Long getDetailId() {
		return detailId;
	}

	public void setDetailId(Long detailId) {
		this.detailId = detailId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public BalanceType getPriceType() {
		return priceType;
	}

	public void setPriceType(BalanceType priceType) {
		this.priceType = priceType;
	}

	public OperationType getOperationType() {
		return operationType;
	}

	public void setOperationType(OperationType operationType) {
		this.operationType = operationType;
	}

	public BigDecimal getIncomePayPrice() {
		return incomePayPrice;
	}

	public void setIncomePayPrice(BigDecimal incomePayPrice) {
		this.incomePayPrice = incomePayPrice;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadImageUrl() {
		return headImageUrl;
	}

	public void setHeadImageUrl(String headImageUrl) {
		this.headImageUrl = headImageUrl;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getOperation() {
		return operationType == null ? null : operationType.getTitle();
	}

	public String getPlatformNo() {
		return platformNo;
	}

	public void setPlatformNo(String platformNo) {
		this.platformNo = platformNo;
	}

	public String getPlatformName() {
		return platformName;
	}

	public void setPlatformName(String platformName) {
		this.platformName = platformName;
	}
}
